﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.ViewModels.Messages
{
    /// <summary>
    /// 工位请求小车消息()
    /// </summary>
    public class WorkStationRequestMsg: IComparable<WorkStationRequestMsg>
    {
        /// <summary>
        /// 当前工件
        /// </summary>
        public 工件 工件 { get; set; }

        /// <summary>
        /// 槽位
        /// </summary>
        public WorkStation WorkStation { get; set; }

        /// <summary>
        /// 请求的时间
        /// </summary>
        public DateTime DateTime { get; set; }

        /// <summary>
        /// 是否已经处理(已经处理的摆渡)
        /// </summary>
        public bool IsDealed { get; set; } = false; 

        public int CompareTo(WorkStationRequestMsg? other)
        {
            return this.DateTime.CompareTo(other.DateTime);
        }
    }
}
